package com.example.multiple.config;

/**
 * @Author yanggld
 * @Date 2019/6/19-11:26
 * @Description
 */
public class DatabaseContextHolder {
	private static final ThreadLocal<String> contextHolder = new ThreadLocal<>();

	public static void setDatabaseType(String type){
		contextHolder.set(type);
	}

	public static String getDatabaseType(){
		return contextHolder.get();
	}
}